import React,{Component} from 'react';
import {connect} from 'react-redux';

const mapStateToProps = (state)=>{
  return {
      count: state.counter.count,
  }
}

class Mime extends Component{
  render(){
    console.log(this.props);
    const {count} =this.props; 
    return (
      <div>
        Mime
        <br/>
        Count:{count}
      </div>
    )
  }
}

export default connect(mapStateToProps)(Mime);